{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { resetComponent } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nfunction genSizeStyle(token, suffix) {\n  var _Object$assign, _$concat, _$concat2, _$concat$concat;\n  var componentCls = token.componentCls,\n    inputPaddingHorizontalBase = token.inputPaddingHorizontalBase,\n    borderRadius = token.borderRadius;\n  var selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;\n  var selectionItemPadding = Math.ceil(token.fontSize * 1.25);\n  var suffixCls = suffix ? \"\".concat(componentCls, \"-\").concat(suffix) : '';\n  return _defineProperty({}, \"\".concat(componentCls, \"-single\").concat(suffixCls), (_$concat$concat = {\n    fontSize: token.fontSize\n  }, _defineProperty(_$concat$concat, \"\".concat(componentCls, \"-selector\"), Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    display: 'flex',\n    borderRadius: borderRadius\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-selection-search\"), {\n    position: 'absolute',\n    top: 0,\n    insetInlineStart: inputPaddingHorizontalBase,\n    insetInlineEnd: inputPaddingHorizontalBase,\n    bottom: 0,\n    '&-input': {\n      width: '100%'\n    }\n  }), _defineProperty(_Object$assign, \"\\n          \".concat(componentCls, \"-selection-item,\\n          \").concat(componentCls, \"-selection-placeholder\\n        \"), {\n    padding: 0,\n    lineHeight: \"\".concat(selectHeightWithoutBorder, \"px\"),\n    transition: \"all \".concat(token.motionDurationSlow),\n    // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:\n    '@supports (-moz-appearance: meterbar)': {\n      lineHeight: \"\".concat(selectHeightWithoutBorder, \"px\")\n    }\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-selection-item\"), {\n    position: 'relative',\n    userSelect: 'none'\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-selection-placeholder\"), {\n    transition: 'none',\n    pointerEvents: 'none'\n  }), _defineProperty(_Object$assign, ['&:after', /* For '' value baseline align */\"\".concat(componentCls, \"-selection-item:after\"), /* For undefined value baseline align */\"\".concat(componentCls, \"-selection-placeholder:after\")].join(','), {\n    display: 'inline-block',\n    width: 0,\n    visibility: 'hidden',\n    content: '\"\\\\a0\"'\n  }), _Object$assign))), _defineProperty(_$concat$concat, \"\\n        &\".concat(componentCls, \"-show-arrow \").concat(componentCls, \"-selection-item,\\n        &\").concat(componentCls, \"-show-arrow \").concat(componentCls, \"-selection-placeholder\\n      \"), {\n    paddingInlineEnd: selectionItemPadding\n  }), _defineProperty(_$concat$concat, \"&\".concat(componentCls, \"-open \").concat(componentCls, \"-selection-item\"), {\n    color: token.colorTextPlaceholder\n  }), _defineProperty(_$concat$concat, \"&:not(\".concat(componentCls, \"-customize-input)\"), _defineProperty({}, \"\".concat(componentCls, \"-selector\"), (_$concat = {\n    width: '100%',\n    height: token.controlHeight,\n    padding: \"0 \".concat(inputPaddingHorizontalBase, \"px\")\n  }, _defineProperty(_$concat, \"\".concat(componentCls, \"-selection-search-input\"), {\n    height: selectHeightWithoutBorder\n  }), _defineProperty(_$concat, '&:after', {\n    lineHeight: \"\".concat(selectHeightWithoutBorder, \"px\")\n  }), _$concat))), _defineProperty(_$concat$concat, \"&\".concat(componentCls, \"-customize-input\"), _defineProperty({}, \"\".concat(componentCls, \"-selector\"), (_$concat2 = {\n    '&:after': {\n      display: 'none'\n    }\n  }, _defineProperty(_$concat2, \"\".concat(componentCls, \"-selection-search\"), {\n    position: 'static',\n    width: '100%'\n  }), _defineProperty(_$concat2, \"\".concat(componentCls, \"-selection-placeholder\"), {\n    position: 'absolute',\n    insetInlineStart: 0,\n    insetInlineEnd: 0,\n    padding: \"0 \".concat(inputPaddingHorizontalBase, \"px\"),\n    '&:after': {\n      display: 'none'\n    }\n  }), _$concat2))), _$concat$concat));\n}\nexport default function genSingleStyle(token) {\n  var _not$concat2;\n  var componentCls = token.componentCls;\n  var inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;\n  return [genSizeStyle(token),\n  // ======================== Small ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    borderRadius: token.borderRadiusSM\n  }), 'sm'), // padding\n  _defineProperty({}, \"\".concat(componentCls, \"-single\").concat(componentCls, \"-sm\"), _defineProperty({}, \"&:not(\".concat(componentCls, \"-customize-input)\"), (_not$concat2 = {}, _defineProperty(_not$concat2, \"\".concat(componentCls, \"-selection-search\"), {\n    insetInlineStart: inputPaddingHorizontalSM,\n    insetInlineEnd: inputPaddingHorizontalSM\n  }), _defineProperty(_not$concat2, \"\".concat(componentCls, \"-selector\"), {\n    padding: \"0 \".concat(inputPaddingHorizontalSM, \"px\")\n  }), _defineProperty(_not$concat2, \"&\".concat(componentCls, \"-show-arrow \").concat(componentCls, \"-selection-search\"), {\n    insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5\n  }), _defineProperty(_not$concat2, \"\\n            &\".concat(componentCls, \"-show-arrow \").concat(componentCls, \"-selection-item,\\n            &\").concat(componentCls, \"-show-arrow \").concat(componentCls, \"-selection-placeholder\\n          \"), {\n    paddingInlineEnd: token.fontSize * 1.5\n  }), _not$concat2))),\n  // ======================== Large ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  }), 'lg')];\n}","map":{"version":3,"names":["resetComponent","mergeToken","genSizeStyle","token","suffix","componentCls","inputPaddingHorizontalBase","borderRadius","selectHeightWithoutBorder","controlHeight","lineWidth","selectionItemPadding","Math","ceil","fontSize","suffixCls","Object","assign","display","position","top","insetInlineStart","insetInlineEnd","bottom","width","padding","lineHeight","transition","motionDurationSlow","userSelect","pointerEvents","join","visibility","content","paddingInlineEnd","color","colorTextPlaceholder","height","genSingleStyle","inputPaddingHorizontalSM","controlPaddingHorizontalSM","controlHeightSM","borderRadiusSM","controlHeightLG","fontSizeLG","borderRadiusLG"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/select/style/single.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nfunction genSizeStyle(token, suffix) {\n  const {\n    componentCls,\n    inputPaddingHorizontalBase,\n    borderRadius\n  } = token;\n  const selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;\n  const selectionItemPadding = Math.ceil(token.fontSize * 1.25);\n  const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n  return {\n    [`${componentCls}-single${suffixCls}`]: {\n      fontSize: token.fontSize,\n      // ========================= Selector =========================\n      [`${componentCls}-selector`]: Object.assign(Object.assign({}, resetComponent(token)), {\n        display: 'flex',\n        borderRadius,\n        [`${componentCls}-selection-search`]: {\n          position: 'absolute',\n          top: 0,\n          insetInlineStart: inputPaddingHorizontalBase,\n          insetInlineEnd: inputPaddingHorizontalBase,\n          bottom: 0,\n          '&-input': {\n            width: '100%'\n          }\n        },\n        [`\n          ${componentCls}-selection-item,\n          ${componentCls}-selection-placeholder\n        `]: {\n          padding: 0,\n          lineHeight: `${selectHeightWithoutBorder}px`,\n          transition: `all ${token.motionDurationSlow}`,\n          // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:\n          '@supports (-moz-appearance: meterbar)': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        },\n        [`${componentCls}-selection-item`]: {\n          position: 'relative',\n          userSelect: 'none'\n        },\n        [`${componentCls}-selection-placeholder`]: {\n          transition: 'none',\n          pointerEvents: 'none'\n        },\n        // For common baseline align\n        [['&:after', /* For '' value baseline align */\n        `${componentCls}-selection-item:after`, /* For undefined value baseline align */\n        `${componentCls}-selection-placeholder:after`].join(',')]: {\n          display: 'inline-block',\n          width: 0,\n          visibility: 'hidden',\n          content: '\"\\\\a0\"'\n        }\n      }),\n      [`\n        &${componentCls}-show-arrow ${componentCls}-selection-item,\n        &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n      `]: {\n        paddingInlineEnd: selectionItemPadding\n      },\n      // Opacity selection if open\n      [`&${componentCls}-open ${componentCls}-selection-item`]: {\n        color: token.colorTextPlaceholder\n      },\n      // ========================== Input ==========================\n      // We only change the style of non-customize input which is only support by `combobox` mode.\n      // Not customize\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selector`]: {\n          width: '100%',\n          height: token.controlHeight,\n          padding: `0 ${inputPaddingHorizontalBase}px`,\n          [`${componentCls}-selection-search-input`]: {\n            height: selectHeightWithoutBorder\n          },\n          '&:after': {\n            lineHeight: `${selectHeightWithoutBorder}px`\n          }\n        }\n      },\n      [`&${componentCls}-customize-input`]: {\n        [`${componentCls}-selector`]: {\n          '&:after': {\n            display: 'none'\n          },\n          [`${componentCls}-selection-search`]: {\n            position: 'static',\n            width: '100%'\n          },\n          [`${componentCls}-selection-placeholder`]: {\n            position: 'absolute',\n            insetInlineStart: 0,\n            insetInlineEnd: 0,\n            padding: `0 ${inputPaddingHorizontalBase}px`,\n            '&:after': {\n              display: 'none'\n            }\n          }\n        }\n      }\n    }\n  };\n}\nexport default function genSingleStyle(token) {\n  const {\n    componentCls\n  } = token;\n  const inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;\n  return [genSizeStyle(token),\n  // ======================== Small ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    borderRadius: token.borderRadiusSM\n  }), 'sm'),\n  // padding\n  {\n    [`${componentCls}-single${componentCls}-sm`]: {\n      [`&:not(${componentCls}-customize-input)`]: {\n        [`${componentCls}-selection-search`]: {\n          insetInlineStart: inputPaddingHorizontalSM,\n          insetInlineEnd: inputPaddingHorizontalSM\n        },\n        [`${componentCls}-selector`]: {\n          padding: `0 ${inputPaddingHorizontalSM}px`\n        },\n        // With arrow should provides `padding-right` to show the arrow\n        [`&${componentCls}-show-arrow ${componentCls}-selection-search`]: {\n          insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5\n        },\n        [`\n            &${componentCls}-show-arrow ${componentCls}-selection-item,\n            &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n          `]: {\n          paddingInlineEnd: token.fontSize * 1.5\n        }\n      }\n    }\n  },\n  // ======================== Large ========================\n  // Shared\n  genSizeStyle(mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  }), 'lg')];\n}"],"mappings":";AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,UAAU,QAAQ,sBAAsB;AACjD,SAASC,YAAY,CAACC,KAAK,EAAEC,MAAM,EAAE;EAAA;EACnC,IACEC,YAAY,GAGVF,KAAK,CAHPE,YAAY;IACZC,0BAA0B,GAExBH,KAAK,CAFPG,0BAA0B;IAC1BC,YAAY,GACVJ,KAAK,CADPI,YAAY;EAEd,IAAMC,yBAAyB,GAAGL,KAAK,CAACM,aAAa,GAAGN,KAAK,CAACO,SAAS,GAAG,CAAC;EAC3E,IAAMC,oBAAoB,GAAGC,IAAI,CAACC,IAAI,CAACV,KAAK,CAACW,QAAQ,GAAG,IAAI,CAAC;EAC7D,IAAMC,SAAS,GAAGX,MAAM,aAAMC,YAAY,cAAID,MAAM,IAAK,EAAE;EAC3D,qCACMC,YAAY,oBAAUU,SAAS;IACjCD,QAAQ,EAAEX,KAAK,CAACW;EAAQ,8CAEpBT,YAAY,gBAAcW,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEjB,cAAc,CAACG,KAAK,CAAC,CAAC;IAClFe,OAAO,EAAE,MAAM;IACfX,YAAY,EAAZA;EAAY,6CACRF,YAAY,wBAAsB;IACpCc,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,gBAAgB,EAAEf,0BAA0B;IAC5CgB,cAAc,EAAEhB,0BAA0B;IAC1CiB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE;MACTC,KAAK,EAAE;IACT;EACF,CAAC,y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